<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="{$__PUBLIC__}/css/reset.css" rel="stylesheet" type="text/css" />
<link href="{$__PUBLIC__}/css/style.css" rel="stylesheet" type="text/css" />
<script src="{$__PUBLIC__}/js/jquery-1.3.2-vsdoc2.js" type="text/javascript"></script>
{literal}
<script type="text/javascript">
$(document).ready(function() {
$("#allck").bind('click',function () {
	 if($('#allck').attr("checked")){
     $("input:checkbox").attr("checked",true);}
	 else{$("input:checkbox").attr("checked",false);}
   }
);
$("#del").click(function() {
//获取ID
var s="";
$("#list input:checked").each(function(){                
s+=$(this).val()+',';
});
//删除提示
if(confirm('确定要删除吗？'))
{//ajax操作
$.ajax({
type: "POST",
{/literal}
url: "{$__URL__}/alldel",
{literal}
data: { fileName:s},
success: function(data) {
if(data=="1")
{alert("删除成功！");
window.location.href="{/literal}{$__URL__}{literal}/show_rec.html";
}else{alert("删除失败！");}
}});
}
});
});
</script>
{/literal}
</head>

<body>
<div id="main_frameid" class="pad-10 display" style="_margin-right:-12px;_width:98.9%;">
<div class="col-2 lf mr10 col">
	<h6>{$lang.recovery}</h6>
	<div class="content">
    <form action="{$__URL__}/recovery_file" method="post" enctype="multipart/form-data">
    <table width="100%" border="0" cellpadding="0" id="list">
    <tr><td>{$lang.ope_local_sql}</td><td><input name="dbfile" type="file" style="border:1px solid #cadcb2;" /></td></tr>
    <tr><td></td><td><input name="submit" type="submit" style="border:1px solid #cadcb2;" value="{$lang.ope_upload_sql}" /></td></tr>
    </table>
    </form>
    <table width="100%" border="0" cellpadding="0" id="list"  style="margin-top:20px;">
    <tr>
    <td colspan="6" >{$lang.ope_server_file}</td>
    </tr>
    <tr>
    <td width="5%" ><input id="allck" name="checkbox" type="checkbox" value="all" /> {$lang.all}</td>
    <td width="20%">{$lang.ope_file_name}</td>
    <td width="10%">{$lang.ope_edition}</td>
    <td width="10%">{$lang.ope_back_time}</td>
    <td width="10%">{$lang.ope_back_size}</td>
    <td width="7%">{$lang.operation}</td>
    </tr>
    {if $list}
    {foreach from=$list item=list}<tr>
    <td>
    <input name="checkbox" type="checkbox"  value="{$list.name}" /></td>
    <td>{$list.name}</td>
    <td>{$list.edition}</td>
    <td>{$list.time}</td>
    <td>{$list.size}kb</td>
    <td><span >[</span><a href="recovery.html?path=../data/db_back/">{$lang.ope_import}</a><span >]</span></td>
    </tr>
    {/foreach}
    <tr><td colspan="6"  style="text-align:center;">
    <input id="del" style="border:1px solid #cadcb2;" name="" type="button" value="{$lang.ope_del_back}" /></td></tr>
    {else}
    <tr><td colspan="6"  style="text-align:center;">{$lang.no_data}</td></tr>
    {/if}
    </table>
	</div>
</div>
</div>
</body>
</html>
